﻿/**
 
 @Name: swui
 @Author: Zxq
 @Site: 
 
 */

/*看板娘*/
#live2d-toggle {
	background-color: #fa0;
	border-radius: 5px;
	bottom: 66px;
	color: #fff;
	cursor: pointer;
	font-size: 12px;
	left: 0;
	margin-left: -100px;
	padding: 5px 2px 5px 5px;
	position: fixed;
	transition: margin-left 1s;
	width: 60px;
	writing-mode: vertical-rl;
}

#live2d-toggle.live2d-toggle-active {
	margin-left: -50px;
}

#live2d-toggle.live2d-toggle-active:hover {
	margin-left: -30px;
}

#live2d-main {
	line-height: 0;
	margin-bottom: -10px;
	position: fixed;
	transform: translateY(3px);
	transition: transform .3s ease-in-out, bottom 3s ease-in-out;
	z-index: 30000002;
}

#live2d-main:hover {
	transform: translateY(0);
}

#live2d-tips {
	animation: tips-shake 50s ease-in-out 5s infinite;
	background-color: rgba(236, 217, 188, .5);
	border: 1px solid rgba(224, 186, 140, .62);
	border-radius: 12px;
	box-shadow: 0 3px 15px 2px rgba(191, 158, 118, .2);
	font-size: 14px;
	line-height: 24px;
	margin-top: -30px;
	min-height: 70px;
	opacity: 0;
	overflow: hidden;
	padding: 5px 10px;
	position: absolute;
	box-sizing: border-box;
	text-overflow: ellipsis;
	transition: opacity 1s;
	width: 200px;
	word-break: break-all;
	z-index: -1;
}
#live2d-main.guideMode #live2d-tips {
	z-index: 1;
}

#live2d-tips.live2d-tips-active {
	opacity: 1;
	transition: opacity .2s;
}

#live2d-tips span {
	color: #0099cc;
}

#live2d-main #live2dcanvas {
	cursor: grab;
	height: 200px;
	position: relative;
	width: 200px;
}

#live2d-main #live2dcanvas:active {
	cursor: grabbing;
}

#live2d-tool {
	color: #aaa;
	opacity: 0;
	position: absolute;
	right: 0;
	top: 20px;
	transition: opacity 1s;
}

#live2d-main:not(.guideMode):hover #live2d-tool  {
	opacity: 1;
}

#live2d-tool span {
	color: #429CE3;
    color: var(--start-hover) !important;
	cursor: pointer;
	display: block;
	line-height: 24px;
	text-align: center;
	transition: color .3s;
}

#live2d-tool span:hover {
	color: #0684bd; /* #34495e */
    color: var(--start-color) !important;
}

.live2d-guide-operate {
    height:20px;
    margin-bottom:-5px;
}
.live2d-guide-operate a {
    color: #0063B1!important;
    float: right;
}
.live2d-guide-operate a:not(:last-child) {
    margin-left:10px;
}
.live2d-guide-operate a:not(:last-child):before{
    position: absolute;
    content: '';
    border-left: 1px solid #999;
    margin-top: 4px;
    margin-left: -5px;
    height: 12px;
}
.live2d-guide{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 30000001;
    background-color: transparent;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
}
.live2d-guide-body{
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    position: absolute;
    border: 2px solid red;
}
.live2d-guide-top,.live2d-guide-left,.live2d-guide-right,.live2d-guide-bottom{
    background-color: rgba(0, 0, 0, 0.6);
    position: absolute;
}
.live2d-guide-top{
    left:0;
    right:0;
}
.live2d-guide-bottom{
    left:0;
    right:0;
    bottom:0;
}
.live2d-guide-left{
    left:0;
}
.live2d-guide-right{
    right:0;
}

@keyframes tips-shake {
	2% {
		transform: translate(.5px, -1.5px) rotate(-.5deg);
	}

	4% {
		transform: translate(.5px, 1.5px) rotate(1.5deg);
	}

	6% {
		transform: translate(1.5px, 1.5px) rotate(1.5deg);
	}

	8% {
		transform: translate(2.5px, 1.5px) rotate(.5deg);
	}

	10% {
		transform: translate(.5px, 2.5px) rotate(.5deg);
	}

	12% {
		transform: translate(1.5px, 1.5px) rotate(.5deg);
	}

	14% {
		transform: translate(.5px, .5px) rotate(.5deg);
	}

	16% {
		transform: translate(-1.5px, -.5px) rotate(1.5deg);
	}

	18% {
		transform: translate(.5px, .5px) rotate(1.5deg);
	}

	20% {
		transform: translate(2.5px, 2.5px) rotate(1.5deg);
	}

	22% {
		transform: translate(.5px, -1.5px) rotate(1.5deg);
	}

	24% {
		transform: translate(-1.5px, 1.5px) rotate(-.5deg);
	}

	26% {
		transform: translate(1.5px, .5px) rotate(1.5deg);
	}

	28% {
		transform: translate(-.5px, -.5px) rotate(-.5deg);
	}

	30% {
		transform: translate(1.5px, -.5px) rotate(-.5deg);
	}

	32% {
		transform: translate(2.5px, -1.5px) rotate(1.5deg);
	}

	34% {
		transform: translate(2.5px, 2.5px) rotate(-.5deg);
	}

	36% {
		transform: translate(.5px, -1.5px) rotate(.5deg);
	}

	38% {
		transform: translate(2.5px, -.5px) rotate(-.5deg);
	}

	40% {
		transform: translate(-.5px, 2.5px) rotate(.5deg);
	}

	42% {
		transform: translate(-1.5px, 2.5px) rotate(.5deg);
	}

	44% {
		transform: translate(-1.5px, 1.5px) rotate(.5deg);
	}

	46% {
		transform: translate(1.5px, -.5px) rotate(-.5deg);
	}

	48% {
		transform: translate(2.5px, -.5px) rotate(.5deg);
	}

	50% {
		transform: translate(-1.5px, 1.5px) rotate(.5deg);
	}

	52% {
		transform: translate(-.5px, 1.5px) rotate(.5deg);
	}

	54% {
		transform: translate(-1.5px, 1.5px) rotate(.5deg);
	}

	56% {
		transform: translate(.5px, 2.5px) rotate(1.5deg);
	}

	58% {
		transform: translate(2.5px, 2.5px) rotate(.5deg);
	}

	60% {
		transform: translate(2.5px, -1.5px) rotate(1.5deg);
	}

	62% {
		transform: translate(-1.5px, .5px) rotate(1.5deg);
	}

	64% {
		transform: translate(-1.5px, 1.5px) rotate(1.5deg);
	}

	66% {
		transform: translate(.5px, 2.5px) rotate(1.5deg);
	}

	68% {
		transform: translate(2.5px, -1.5px) rotate(1.5deg);
	}

	70% {
		transform: translate(2.5px, 2.5px) rotate(.5deg);
	}

	72% {
		transform: translate(-.5px, -1.5px) rotate(1.5deg);
	}

	74% {
		transform: translate(-1.5px, 2.5px) rotate(1.5deg);
	}

	76% {
		transform: translate(-1.5px, 2.5px) rotate(1.5deg);
	}

	78% {
		transform: translate(-1.5px, 2.5px) rotate(.5deg);
	}

	80% {
		transform: translate(-1.5px, .5px) rotate(-.5deg);
	}

	82% {
		transform: translate(-1.5px, .5px) rotate(-.5deg);
	}

	84% {
		transform: translate(-.5px, .5px) rotate(1.5deg);
	}

	86% {
		transform: translate(2.5px, 1.5px) rotate(.5deg);
	}

	88% {
		transform: translate(-1.5px, .5px) rotate(1.5deg);
	}

	90% {
		transform: translate(-1.5px, -.5px) rotate(-.5deg);
	}

	92% {
		transform: translate(-1.5px, -1.5px) rotate(1.5deg);
	}

	94% {
		transform: translate(.5px, .5px) rotate(-.5deg);
	}

	96% {
		transform: translate(2.5px, -.5px) rotate(-.5deg);
	}

	98% {
		transform: translate(-1.5px, -1.5px) rotate(-.5deg);
	}

	0%, 100% {
		transform: translate(0, 0) rotate(0);
	}
}

#live2d-main.on {
    animation: liveShow 1s;
    -moz-animation: liveShow 1s;    
    -webkit-animation: liveShow 1s;    
    -o-animation: liveShow 1s;
}
#live2d-main.off {
    animation: liveHide 1s;
    -moz-animation: liveHide 1s;    
    -webkit-animation: liveHide 1s;
    -o-animation: liveHide 1s;
    animation-fill-mode: forwards;
}
@keyframes liveShow {/*从小变大*/
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}
@keyframes liveHide {/*从大变小*/
    from {
        transform: scale(1);
    }
    to {
        transform: scale(0);
    }
}